package com.bw.module_home.api

import com.bw.lib_common.api.ApiService
import com.bw.module_home.model.MerchantResultData
import com.bw.module_merchant.entity.AddEnterpriseParams
import com.bw.module_merchant.entity.EnterpriseEntityItem
import com.bw.module_merchant.entity.EnterpriseRecordEntity

import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface MerchantApiServer:ApiService{



    @GET("/api/enterprise-profiles")
    suspend fun getEnterpriseList() : MerchantResultData<List<EnterpriseEntityItem>>

    @GET("/api/enterprise-profiles/{id}")
    suspend fun getEnterpriseDetail(@Path("id") id : Int) : MerchantResultData<EnterpriseEntityItem>

    @POST("/api/merchant-applications")
    suspend fun addMerchantApplication(@Body body : AddEnterpriseParams) : MerchantResultData<EnterpriseRecordEntity>

    @GET("/api/merchant-applications")
    suspend fun getMerchantApplications() : MerchantResultData<List<EnterpriseRecordEntity>>

    @GET("/api/merchant-applications/{id}")
    suspend fun getMerchantApplicationDetail(@Path("id") id : Int) : MerchantResultData<EnterpriseRecordEntity>
}